import React from 'react'
import {BrowserRouter,Route,Switch} from 'react-router-dom'
import App from './App'
import MyWealth from './pages/myWealth/index'
import InvestOnline from './pages/investOnline/index'
import Mine from './pages/mine/index'
import Equity from './pages/equity/index'
import Insurance from './pages/insurance/index'
import Main from './pages/main/index'
import GrowthValue from './pages/growthValue/index'
export default class IRouter extends React.Component{
    render(){
        return(
                <BrowserRouter>
                    <Switch>
                        <App>
                            <Route path='/' exact component={Main}/>
                            <Route path='/investOnline' exact component={InvestOnline}/>
                            <Route path='/Insurance' exact component={Insurance}/>
                            <Route path='/equity' exact component={Equity}/>
                            <Route path='/mine' exact component={Mine}/>
                            <Route path='/mywealth' exact component={MyWealth}/>
                            <Route path='/growthvalue' exact component={GrowthValue}/>
                        </App>
                    </Switch>
                </BrowserRouter>
        );
    }
}